package com.caocaog.market.finance.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.caocaog.market.finance.vo.MkBillLineVo;
import com.caocaog.market.modules.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
@TableName("mk_bill_change")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="提现申请关联表", description="提现申请关联表")
@AllArgsConstructor
@NoArgsConstructor
public class MkBillChange{

    @TableField(exist = false)
    private transient String siteName;
    @TableField(exist = false)
    private transient String merchantName;
    @TableField(exist = false)
    private transient String rakeAliname;
    @TableField(exist = false)
    private transient Date withdrawTime;



    /** ID */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Integer id;

    /** 创建人 */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /** 更新人 */
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /** 版本号 */
    @TableField(update = "%s+1")
    @ApiModelProperty(value = "版本号")
    private Integer lockVersion;

    @Dict(dicCode = "mk_whether")
    @TableLogic
    @ApiModelProperty(value="是否删除")
    private Integer delFlag;

    @ApiModelProperty(value="提现总金额")
    String changeValue;

    @Dict(dicCode = "bill_withdraw_cash_status")
    @ApiModelProperty(value="提现状态")
    Integer withdrawCashStatus;

    @Dict(dicCode = "bill_line_type")
    @ApiModelProperty(value="提现类型")
    Integer type;

    @ApiModelProperty(value="change关联表单号")
    String changeNo;

    @ApiModelProperty(value="驳回原因")
    String withdrawRejectReason;

    @ApiModelProperty(value="分站id")
    String siteId;

    @ApiModelProperty(value="商家id")
    String merchantId;

    @ApiModelProperty(value="店铺名称")
    String shopName;

    /**
     * 提现详情vo集合
     */
    @TableField(exist = false)
    @ApiModelProperty(hidden = true)
    private List<MkBillLineVo> mkBillLineVo;
}
